package com.learn.temp.JVM;

public class StackOverflow {
    public static int count;

    public void redo() {
        count++;
        redo();
    }

    public static void main(String[] args) {
        StackOverflow s = new StackOverflow();
        try {
            s.redo();
        } catch (Throwable e) {
            System.out.println(count);

        }
    }
}
